from django.db import models
from django.db.models import ManyToManyField


# Create your models here.
class user(models.Model):
    userid=models.AutoField(primary_key=True,auto_created=True)
    username=models.CharField(max_length=50,unique=True)
    password=models.CharField(max_length=20)
    power=models.IntegerField(choices=[(1,'管理员'),(2,'普通用户')])